//
//  UIPatientInformationInputTextField.h
//  vhStressTest1
//
//  Created by jia yu on 2021/8/31.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, UIStandardInputTextField_Style) {
    UIStandardInputTextField_Style_Default = 0,
    UIStandardInputTextField_Style_WithBoard = 1
};

typedef void (^UIStandardInputTextField_ChangedHandler) (NSString * _Nullable targetString);

NS_ASSUME_NONNULL_BEGIN
@interface UIStandardInputTextField : UITextField
@property (nonatomic) UIStandardInputTextField_ChangedHandler changedHandler;
@property (nonatomic) UIStandardInputTextField_Style style;
@property (nonatomic) NSString * _Nullable regex;
@property (nonatomic) NSString *helpString;
@property (nonatomic) BOOL editable;        //default is YES

-(BOOL)available;
-(id)initWithFrame:(CGRect)frame scale:(float)scale;
@end
NS_ASSUME_NONNULL_END
